package com.woniuxy.service.impl;

import com.woniuxy.dao.UserDao;
import com.woniuxy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: zhouhongcheng
 * Date: 2022/1/21:12:06
 * Description:
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired//通过注解进行自动装配，默认先使用的是byType进行装配
    UserDao userDao;

    @Override
    public List<Map<String, String>> findAll() {
        Map<String, String> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put("account","test");
//        userDao.insert(objectObjectHashMap);
        return  userDao.findAll();
    }
}
